from rest_framework import serializers
from .models import *


class UserSer(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = "__all__"


class GradeSer(serializers.ModelSerializer):
    class Meta:
        model = Grade
        fields = "__all__"


class ClassesSer(serializers.ModelSerializer):
    grade = GradeSer()

    class Meta:
        model = Classes
        fields = "__all__"
